package com.example.sztangli.widgedemo.popwindow;

import com.example.sztangli.widgedemo.MainActivity;
import com.example.sztangli.widgedemo.R;
import com.example.sztangli.widgedemo.base.BaseActivity;
import com.example.sztangli.widgedemo.utils.ActivityUtils;

/**
 * Created by sztangli on 2017/8/10.
 */

public class PoPWindowActiivty extends BaseActivity {
    @Override
    public int getLayoutResId() {
        return R.layout.activity_base;
    }

    @Override
    public void initalFragment() {
        setTitleCenter(getIntent().getStringExtra(MainActivity.TITLE));
        PopWindowFragment fragment=PopWindowFragment.newInstance();
        ActivityUtils.addFragmentToActivity(mFragmentManager,fragment,R.id.container,PopWindowFragment.TAG);
    }
}
